home *** CD-ROM | disk | FTP | other *** search
/ Mac Mania 3 / MacMania 3.toast / Demo's / KarmaMacDemo / GAME_G1.DXR / 00222.ls < prev    next >
Encoding:
Text File  |  1995-10-24  |  1.3 KB  |  42 lines

  1. on moveLeftDown
  2.   global SpinCount, MoveDirection, down, myState, BallinSprite
  3.   if SpinCount < 10 then
  4.     set the locH of sprite 28 to the locH of sprite 28 - 3
  5.   else
  6.     if SpinCount < 12 then
  7.       set the locV of sprite 28 to the locV of sprite 28 + 1
  8.       set the locH of sprite 28 to the locH of sprite 28 - 2
  9.     else
  10.       if SpinCount < 14 then
  11.         set the locV of sprite 28 to the locV of sprite 28 + 1
  12.         set the locH of sprite 28 to the locH of sprite 28 - 1
  13.       else
  14.         if SpinCount < 16 then
  15.           set the locV of sprite 28 to the locV of sprite 28 + 2
  16.           set the locH of sprite 28 to the locH of sprite 28 - 1
  17.         else
  18.           if SpinCount < 22 then
  19.             set the locV of sprite 28 to the locV of sprite 28 + 3
  20.           else
  21.             if (BallinSprite <> 25) and (BallinSprite <> 26) and (BallinSprite <> 23) then
  22.               set myState to 0
  23.             end if
  24.           end if
  25.         end if
  26.       end if
  27.     end if
  28.   end if
  29.   if SpinCount = 22 then
  30.     set the locV of sprite 28 to the locV of sprite 28 + 2
  31.     if (BallinSprite = 25) or (BallinSprite = 26) or (BallinSprite = 23) then
  32.       DropingDown()
  33.     else
  34.       set SpinCount to 0
  35.       set MoveDirection to down
  36.     end if
  37.   else
  38.     set SpinCount to SpinCount + 1
  39.   end if
  40.   updateStage()
  41. end
  42.